{% extends 'ipam/ipaddress.html' %}
{% load helpers %}
{% load render_table from django_tables2 %}
{% load static %}

{% block drawer %}
    {% table_config_form interface_table %}
{% endblock %}

{% block content %}
    <form method="post">
        {% csrf_token %}
        <div class="card">
            <div class="card-header">
                <strong>Interfaces</strong>
                <div class="float-end col-lg-2 d-print-none">
                    <input class="form-control interface-filter" type="text" placeholder="Filter" title="Filter text (regular expressions supported)" style="height: 23px" />
                </div>
            </div>
            {% render_table interface_table 'inc/table.html' %}
        </div>
    </form>
    {% if interface_table.paginator.num_pages > 1 %}
        {% include "inc/paginator.html" with paginator=interface_table.paginator page=interface_table.page %}
    {% endif %}
{% endblock content %}

{% block javascript %}
    {{ block.super }}
    <script src="{% versioned_static 'js/connection_toggles.js' %}"></script>
    <script src="{% versioned_static 'js/interface_filtering.js' %}"></script>
    <script src="{% versioned_static 'js/tableconfig.js' %}"></script>
{% endblock javascript %}
